package eg.ci.mvn.service.api.model.param;


import eg.ci.mvn.service.api.model.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(description =  "ScriptParam参数")
@Builder
public class ScriptParam {

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Schema(description = "脚本请求参数")
    public static class RequestParam extends BaseDTO {

        @Schema(description = "名称", example = "redissonScriptFunc")
        private String name;

        @Schema(description = "操作", example = "evalShaWithArgs")
        private String operation;

        @Schema(description = "内容", example = "\\['4a2267357833227dd98abdedb8cf24b15a986445', 'STATUS', ['中国'] \\]")
        private String cnt;

    }

}
